package com.itheima.innerclass;

public class InnerClass {
    //内部类
    public static void main(String[] args) {
        //创建内部类
        Outer.Inner inner = new Outer().new Inner();
        //创建内部类
        People.Heart heart = new People().new Heart();
        //调用内部类功能
        heart.Heart();
    }
}
    //内部成员的应用
    class People {
        int heart = 300;

        public class Heart {
            int heart = 100;

            public void Heart() {
                int heart = 200;
                System.out.println(heart);//200
                System.out.println(this.heart);//100
                System.out.println(People.this.heart);//300
            }
        }
    }
